<?PHP
 session_start();
 include("admin/include/db.php");

 $userId = $_GET['user_id'];
 $email = $_GET['email']; 
 
 $sqlEmail  = mysql_query("SELECT * FROM software_user WHERE Id = '$userId' AND email = '$email'");
 $resEmail  = mysql_fetch_array($sqlEmail);
 $confirmId = intval($resEmail["Id"]); 	
 
 if($confirmId > 0){
	mysql_query("UPDATE software_user SET active = 'Y' WHERE Id = '$confirmId'"); 
	header("location:login.php?msg=4"); 
 
 }else{
	header("location:login.php?msg=5"); 
 }
 exit();
 
?> 
